-- GENERATED SPELL FOR [Bone Giant] --


function spell0_31815(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(36405,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31815', 618, 1)
end

function Sorts_31815(pUnit, Event)
local choix_sorts_31815 = math.random(0, 0)
if choix_sorts_31815 == 0 then
pUnit:RegisterEvent('spell0_31815', 1, 1)
end
end

function mob31815_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31815', math.random(1500, 3000), 1)
end

function mob31815_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31815_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31815_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31815, 1, 'mob31815_Action')
RegisterUnitEvent(31815, 2, 'mob31815_Leave')
RegisterUnitEvent(31815, 3, 'mob31815_Kill')
RegisterUnitEvent(31815, 4, 'mob31815_Die')
